<%@ page language="java" import="java.util.*,com.king.cms.common.*" pageEncoding="UTF-8"%>
<%@ include file="/hotel/include/css.jsp"%><%-- /*包含css样式表*/ --%>
<%
   List userList = (ArrayList)request.getAttribute("users");
   int pow=0;

 %>	 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; ">
<title>在线用户列表</title>
</head>

<body  leftmargin="0" topmargin="0">
<form name="form1" method="post" action="online.jsp">
<script language="JavaScript">
<!--
 

-->
</script> 
<center>
<table border="0" cellpadding="0" cellspacing="0"  width="98%" height="2" >
    <tr>
      <td width="9" height="1">
      <td  height="1">
      <p align="center"><b>用户在线列表 </b><!-- [<a href="online.jsp?doType=clearAll">清空所有用户</a>]--></td>
      <td width="9" height="1">
      </td>
    </tr>
  </table>
<table width ="98%"  cellpadding="4" cellspacing="1"  class="bg_table" >
    <tr class="top_td">
    <td width="5%">
    序号</td>
    <td>
    用户帐号</td>
    <td>
    姓名</td>
    <td>
    职务</td>
    <td>
    登录IP</td>
    <td>
    登录时间</td>      
  </tr> 
  <%if(null != userList &&userList.size()>0) {
     for(int i = 0;i<userList.size();i++){
             UserObj obj = (UserObj)userList.get(i);
  %>
  <tr  <%if(i%2==1){%> class="td2" onMouseOver="this.className='td5'" onMouseOut="this.className='td2'"<%} else {%>class="td3" onMouseOver="this.className='td5'" onMouseOut="this.className='td3'" <%}%>>
	<td align="center" height="20"  ><%=i+1 %>
     </td>
	<td align="center" height="20"  ><%=obj.getUid() %>
    </td>
	<td align="center" height="20"><%=obj.getDuty() %>
     </td>
	<td align="center" height="20" ><%=obj.getUserName() %>
    </td>
	<td align="center" height="20"><%=obj.getIp() %>
     </td>
	<td align="center" height="20"  ><%=obj.getLogontime() %>
     </td>
	</tr>
	<%}} %>
  
  

 <table border="0" cellpadding="0" cellspacing="0"  width="98%" height="27" class="top_td" colspan="8" >
    <tr>
      <td width="100" height="27" >
      <td width="100%" height="27" >
    
		  
	  </td>
      <td width="9" height="27">
      </td>
    </tr>
  </table>
</form>
</body>
</html>
<%@ include file="/hotel/pow.jsp"%>